//
//  ViewController.swift
//  project1
//
//  Created by Qingke on 16/3/23.
//  Copyright © 2016年 Qingke. All rights reserved.
//

import UIKit

class ViewController: UIViewController {

    @IBOutlet weak var topLable: UILabel!
    @IBOutlet weak var nextLable: UILabel!
    
    let array: [String] = ["1","2","3","4"]
    
    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view, typically from a nib.
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }

    @IBAction func button(sender: UIButton) {
        topLable.text = array[Int(arc4random_uniform(4))]
        nextLable.text = String(arc4random_uniform(200)+1)
        
    }

}

